#!/bin/sh -e

export DESTDIR="$1"

meson setup \
    -Dprefix=/usr \
    output

ninja -C output
ninja -C output install

# $1 is never unset
# shellcheck disable=2115
rm -rf "$1/usr/share"
